package com.gpf.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.gpf.pojo.JsonResult;
import com.gpf.pojo.PageObject;
import com.gpf.pojo.SysLog;
import com.gpf.server.SysLogServer;
import com.gpf.server.SysMenuService;

@RequestMapping("/")
@Controller
public class SysLogController {
	
	@Autowired
	private SysLogServer sysLogServer;
	
	@RequestMapping("log/doFindPageObjects")
	@ResponseBody
	public JsonResult doFindPageObjects(String username,Integer pageCurrent) {
		PageObject<SysLog> findPageObjects = sysLogServer.findPageObjects(username,pageCurrent);
		return new JsonResult(findPageObjects);
	}
	@RequestMapping("log/doDeleteObjects")
	@ResponseBody
	public JsonResult doDeleteObjects(Integer... ids) {
		sysLogServer.deleteObjects(ids);
		return new JsonResult("delete done!");
	}
}
  